package edu.study.user.api.req.auth;

import javax.validation.constraints.NotNull;

import edu.study.api.common.constraints.IsEnum;
import edu.study.api.common.dto.BaseReqDto;
import edu.study.api.common.enums.StatusTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@ApiModel("修改权限状态:失效或生效")
public class ModifyAuthStatusReq extends BaseReqDto {

    /**
	 *
	 */
	private static final long serialVersionUID = -731538599642082271L;
	
	@ApiModelProperty(value = "权限编号", example = "", required = true)
	@NotNull(message = "权限编号不能为空")
    private String authNo;
	
	@ApiModelProperty(value = "状态(VALID-有效,INVALID-待生效)", example = "", required = true)
	@IsEnum(StatusTypeEnum.class)
    private String status;
}
